
project(sv_aicam_vi_venc_test)

cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
include(CheckIncludeFiles)
include(CheckFunctionExists)
include(CheckSymbolExists)
include(CheckCXXCompilerFlag)


set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wl,--allow-shlib-undefined")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wl,--allow-shlib-undefined")


set(RKMEDIA_LIB ${CMAKE_SOURCE_DIR}/../3rdparty/rkmedia/lib/libeasymedia.so)
set(RKAIQ_LIB ${CMAKE_SOURCE_DIR}/../3rdparty/rkaiq/lib/librkaiq.so)



add_definitions(-g -O0 -ggdb -gdwarf -funwind-tables -rdynamic)


include_directories(../3rdparty/rkmedia/include/)
include_directories(../3rdparty/rkaiq/include/uAPI)
include_directories(../3rdparty/rkaiq/include/common)
include_directories(../3rdparty/rkaiq/include/xcore)
include_directories(../3rdparty/rkaiq/include/algos)
include_directories(../3rdparty/rkaiq/include/iq_parser)


add_definitions(-DRKAIQ)

add_executable(sv_aicam_vi_venc_test 
	sv_aicam_vi_venc_test.c
	sample_common_isp.c
)


target_link_libraries(sv_aicam_vi_venc_test 
	${RKMEDIA_LIB}
	${RKAIQ_LIB}
)

set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/install)
install(TARGETS sv_aicam_vi_venc_test DESTINATION ./)


